using System;
using System.Collections.Generic;
using Gasco.DataAccess;

namespace Gasco.Business.Services
{
    public interface IContactService
    {
        contact GetContactById(int id);
        int GetContactIdByName(string name);
        contact CreateContact(contact c);
        void UpdateContact(contact c);
        void DeleteContact(int id);


        int CountContacts();
        List<contact> AutoCompleteByName(string name);
        List<contact> SearchContacts(string keyword, int pageSize, int pageNumber, string sortBy, string sortDirection);
        int CountSearchContacts(string keyword);
    }
}
